package com.study.design.pattern.pattern.structural.composite;

/**
 * @Author: gongsl
 * @Date: 2025-03-16 14:55
 * @description: 文件系统抽象类
 */
public abstract class FileSystemNode {

    /**
     * 名称
     */
    protected String name;

    public FileSystemNode(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public abstract boolean isFile();

    public abstract int countNumOfFiles();
}
